API Documentation

API Contract Documentation

Complete API reference for the three-tier application

Frontend to Backend API Communication

Base URL: {environment.apiUrl} (typically /api, Base URL Configured with Nginx)

Authentication Controller (/api/Auth)

POST /api/Auth/login
GET /api/Auth/verify

Data Controller (/api/Data)

POST /api/Data/upload Legacy
POST /api/Data/upload-chunk
POST /api/Data/finish-upload
POST /api/Data/validate-ranges

Model Controller (/api/Model)

POST /api/Model/train
WebSocket /api/Model/simulation-ws

Backend to ML Service Communication

Base URL: http://localhost:8000 (Development) / http://ml_service:8000 (Production)

CSV Processor Router (/csv)

POST /csv/upload-chunk
POST /csv/finish-upload
POST /csv/validate-ranges
POST /csv/train
WebSocket /csv/simulation-ws